/*
 * @Author: QinJiu
 * @Date: 2022-07-20 14:19:32
 * @LastEditors: Qinjiu
 * @LastEditTime: 2023-01-06 16:37:51
 * @Description: 无权限控制的路由 ---> 不需要登录
 */

const constantRoutes = [
  {
    path: "/redirect",
    component: () => import("@/layout"),
    hidden: true,
    children: [
      {
        path: "/redirect/:path(.*)",
        component: () => import("@/views/RedirectView/index"), // 重定向中介组件
      },
    ],
  },
  {
    path: "/login",
    component: () => import("@/views/LoginView/index"),
    hidden: true,
  },
  {
    path: "/404",
    component: () => import("@/views/error-page/404"),
    hidden: true,
  },
  {
    path: "/401",
    component: () => import("@/views/error-page/401"),
    hidden: true,
  },
];

export default constantRoutes;
